package com.tlsy.commerce.multi_tenant;

/**
 * @author Tlsy
 * @version commerce 0.0.1
 * @date 2017/4/10  18:22
 */
public class TenantHolder {
    private static ThreadLocal<String> tenantHolder = new ThreadLocal<>();

    public static final String TENANT_ID = "Tenant";

    public static String getTenant() {
        return tenantHolder.get();
    }

    public static void setTenant(String value){
        tenantHolder.set(value);
    }
}
